package com.college.heyuhua.dao;

import com.college.heyuhua.model.EmailInfo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * Created by 赵东坡 on 2019/2/6.
 * Time:10:19
 * 宇宙无敌赵牛逼，祈求永无bug
 */
@Mapper
@Component
public interface EmailMapper {


    @Insert("<script>" +
            "insert into emailinfo(name,email,dept,message) " +
            "values (#{e.name},#{e.email},#{e.dept},#{e.message}) " +
            "</script>")
    public boolean insertEmail(@Param("e") EmailInfo emailInfo);
}
